Fix FTBFS against NETCDF>4.9.0. (Closes: #1012703)
authorAnton Gladky <gladk@debian.org>
Sun, 19 Jun 2022 14:24:38 +0000 (16:24 +0200)
committerAnton Gladky <gladk@debian.org>
Sun, 19 Jun 2022 14:24:38 +0000 (16:24 +0200)
debian/control
debian/patches/110_vtk9_netcdf.patch [new file with mode: 0644]
debian/patches/series

index 0141e055d5a6593162820c19d7a6533e65da551d..5d7b4d367f7228f0d1f2097f12d6b8a7c2e57959 100644 (file)
@@ -42,7 +42,7 @@ Build-Depends: chrpath,
                liblz4-dev,
                libmrmpi-dev,
                libnetcdf-cxx-legacy-dev,
-               libnetcdf-dev,
+               libnetcdf-dev (>= 1:4.9.0),
                libogg-dev,
                libosmesa6-dev,
                libpng-dev,
diff --git a/debian/patches/110_vtk9_netcdf.patch b/debian/patches/110_vtk9_netcdf.patch
new file mode 100644 (file)
index 0000000..888225e
--- /dev/null
@@ -0,0 +1,16 @@
+Description: Fix FTBFS with new netcdf
+Author: Anton Gladky <gladk@debian.org>
+Bug-Debian: https://bugs.debian.org/1012703
+Last-Update: 2022-06-19
+
+--- vtk9-9.1.0+really9.1.0+dfsg2.orig/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
++++ vtk9-9.1.0+really9.1.0+dfsg2/ThirdParty/exodusII/vtkexodusII/src/ex_utils.c
+@@ -1770,7 +1770,7 @@ void ex__compress_variable(int exoid, in
+         */
+         /* const int NC_SZIP_EC = 4; */ /* Selects entropy coding method for szip. */
+-        const int NC_SZIP_NN = 32;      /* Selects nearest neighbor coding method for szip. */
++        // const int NC_SZIP_NN = 32;      /* Selects nearest neighbor coding method for szip. */
+         /* Even and between 4 and 32; typical values are 8, 10, 16, 32 */
+         const int SZIP_PIXELS_PER_BLOCK =
+             file->compression_level == 0 ? 32 : file->compression_level;
index 11535dec5d0a03766c5bff15e32e810118dedb14..ee1cfee6756d008acb902bf26756ea2f1b3c5e0b 100644 (file)
@@ -10,3 +10,4 @@
 97_reproducible_builds.patch
 98_fix_mpi4py.py
 99_fix_ftbfs.patch
+110_vtk9_netcdf.patch